﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002A5 RID: 677
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueReviveAvatarScRsp : IMessage<ChessRogueReviveAvatarScRsp>, IMessage, IEquatable<ChessRogueReviveAvatarScRsp>, IDeepCloneable<ChessRogueReviveAvatarScRsp>, IBufferMessage
	{
		// Token: 0x170008CF RID: 2255
		// (get) Token: 0x06001E4F RID: 7759 RVA: 0x0005672B File Offset: 0x0005492B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueReviveAvatarScRsp> Parser
		{
			get
			{
				return ChessRogueReviveAvatarScRsp._parser;
			}
		}

		// Token: 0x170008D0 RID: 2256
		// (get) Token: 0x06001E50 RID: 7760 RVA: 0x00056732 File Offset: 0x00054932
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueReviveAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170008D1 RID: 2257
		// (get) Token: 0x06001E51 RID: 7761 RVA: 0x00056744 File Offset: 0x00054944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueReviveAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x06001E52 RID: 7762 RVA: 0x0005674B File Offset: 0x0005494B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueReviveAvatarScRsp()
		{
		}

		// Token: 0x06001E53 RID: 7763 RVA: 0x00056760 File Offset: 0x00054960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueReviveAvatarScRsp(ChessRogueReviveAvatarScRsp other) : this()
		{
			this.reviveInfo_ = ((other.reviveInfo_ != null) ? other.reviveInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001E54 RID: 7764 RVA: 0x000567BD File Offset: 0x000549BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueReviveAvatarScRsp Clone()
		{
			return new ChessRogueReviveAvatarScRsp(this);
		}

		// Token: 0x170008D2 RID: 2258
		// (get) Token: 0x06001E55 RID: 7765 RVA: 0x000567C5 File Offset: 0x000549C5
		// (set) Token: 0x06001E56 RID: 7766 RVA: 0x000567CD File Offset: 0x000549CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAvatarReviveCost ReviveInfo
		{
			get
			{
				return this.reviveInfo_;
			}
			set
			{
				this.reviveInfo_ = value;
			}
		}

		// Token: 0x170008D3 RID: 2259
		// (get) Token: 0x06001E57 RID: 7767 RVA: 0x000567D6 File Offset: 0x000549D6
		// (set) Token: 0x06001E58 RID: 7768 RVA: 0x000567DE File Offset: 0x000549DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170008D4 RID: 2260
		// (get) Token: 0x06001E59 RID: 7769 RVA: 0x000567E7 File Offset: 0x000549E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x06001E5A RID: 7770 RVA: 0x000567EF File Offset: 0x000549EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueReviveAvatarScRsp);
		}

		// Token: 0x06001E5B RID: 7771 RVA: 0x00056800 File Offset: 0x00054A00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueReviveAvatarScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.ReviveInfo, other.ReviveInfo) && this.Retcode == other.Retcode && this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001E5C RID: 7772 RVA: 0x00056864 File Offset: 0x00054A64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reviveInfo_ != null)
			{
				num ^= this.ReviveInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001E5D RID: 7773 RVA: 0x000568C7 File Offset: 0x00054AC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001E5E RID: 7774 RVA: 0x000568CF File Offset: 0x00054ACF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001E5F RID: 7775 RVA: 0x000568D8 File Offset: 0x00054AD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reviveInfo_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.ReviveInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			this.baseAvatarIdList_.WriteTo(ref output, ChessRogueReviveAvatarScRsp._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001E60 RID: 7776 RVA: 0x00056944 File Offset: 0x00054B44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reviveInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReviveInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.baseAvatarIdList_.CalculateSize(ChessRogueReviveAvatarScRsp._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001E61 RID: 7777 RVA: 0x000569B0 File Offset: 0x00054BB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueReviveAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reviveInfo_ != null)
			{
				if (this.reviveInfo_ == null)
				{
					this.ReviveInfo = new RogueAvatarReviveCost();
				}
				this.ReviveInfo.MergeFrom(other.ReviveInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001E62 RID: 7778 RVA: 0x00056A29 File Offset: 0x00054C29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001E63 RID: 7779 RVA: 0x00056A34 File Offset: 0x00054C34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 66U)
					{
						if (this.reviveInfo_ == null)
						{
							this.ReviveInfo = new RogueAvatarReviveCost();
						}
						input.ReadMessage(this.ReviveInfo);
						continue;
					}
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else if (num == 120U || num == 122U)
				{
					this.baseAvatarIdList_.AddEntriesFrom(ref input, ChessRogueReviveAvatarScRsp._repeated_baseAvatarIdList_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000C80 RID: 3200
		private static readonly MessageParser<ChessRogueReviveAvatarScRsp> _parser = new MessageParser<ChessRogueReviveAvatarScRsp>(() => new ChessRogueReviveAvatarScRsp());

		// Token: 0x04000C81 RID: 3201
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000C82 RID: 3202
		public const int ReviveInfoFieldNumber = 8;

		// Token: 0x04000C83 RID: 3203
		private RogueAvatarReviveCost reviveInfo_;

		// Token: 0x04000C84 RID: 3204
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04000C85 RID: 3205
		private uint retcode_;

		// Token: 0x04000C86 RID: 3206
		public const int BaseAvatarIdListFieldNumber = 15;

		// Token: 0x04000C87 RID: 3207
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x04000C88 RID: 3208
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();
	}
}
